package com.xzavier.yunlian_interview.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.*;

import java.io.Serializable;
import java.util.Date;

@Data
@ToString
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode
@TableName("favoritequestions")
public class QuestionRecord implements Serializable {
    @TableId("id")
    @JsonIgnore
    private String id;
    @TableField("userId")
    @JsonIgnore
    private String userId;
    @TableField("questionId")
    private String questionId;
    private int liked;
    @JsonIgnore
    @TableField("createdAt")
    private Date createdAt;
    @TableField("readflag")
    private int readflag;
    @TableField("collectFlag")
    private int collectFlag;
}
